﻿using System;
namespace ORS.OrderRobot
{
    /// <summary>
    /// 有业务编号的异常码
    /// </summary>
	public class CodeException : Exception
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; }

        public CodeException(int code, string message)
            : base(message)
        {
            Code = code;
        }

        public CodeException(int code, string message, Exception innerException): base(message, innerException)
        {
            Code = code;
        }
    }
}

